import {customeStruct} from '../utils';
const itf = customeStruct.interface;
export const InitData = itf({
    payload: itf({
        isDealerUser: 'boolean',
        brands: [itf({
            id: 'string',
            code: 'string',
            name: 'string'
        })],
    })
});

export const Brands = itf({
    payload: itf({
        content: [itf({
            id: 'string',
            code: 'string',
            name: 'string'
        })]
    })
});

export const List = itf({
    payload: itf({
        content: [itf({
            id: 'string',
            rowVersion: 'string',
            options: ['string']
        })],
        totalElements: 'number'
    })
});


export const Dealer = itf({
    payload: itf({
        content: [
            itf({
                id: 'string',
                code: 'string',
                name: 'string',
            })
        ],
        totalElements: 'number'
    })
});

export const DealerSimple = itf({
    payload: itf({
        content: [
            itf({
                id: 'string',
                code: 'string',
                name: 'string',
            })
        ]
    })
});


export const Detail = itf({
    payload: itf(
        {
            brandId: 'string',
            id: 'string',
            rowVersion: 'string',
            options: ['string'],
            attachments: [
                itf({
                    fileId: 'string',
                    fileName: 'string'
                })
            ],
        },
    )
});

export const Claim = itf({
    payload: itf({
        content: [
            itf({
                id: 'string',
                code: 'string',
            })
        ],
        totalElements: 'number'
    })
});

export const ClaimDetail = itf({
    payload: itf({
        id: 'string',
        code: 'string',
    })
});

export const OutClaim = itf({
    payload: itf({
        content: [
            itf({
                id: 'string',
                code: 'string',
            })
        ],
        totalElements: 'number'
    })
});

export const OutClaimDetail = itf({
    payload: itf({
        id: 'string',
        code: 'string',
    })
});
